From: Florian Müllner Date: Fri, 26 Jul 2019 01:04:38 +0000 (+0000) Subject: appDisplay: Skip animation when hidden X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~839^2^2~71 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0f178c3b3dcfecae62e3458ddc62500e83e40968;p=gnome-shell.git appDisplay: Skip animation when hidden The time computation isn't just unnecessary in that case, it's likely wrong as well: If we don't have a valid allocation, we may well end up with a negative value, NaN or Infinity. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/654 --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index b26951e3c..cec1d602b 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -463,6 +463,12 @@ var AllView = class AllView extends BaseAppView { if (this._displayingPopup && this._currentPopup) this._currentPopup.popdown(); + if (!this.actor.mapped) { + this._adjustment.value = this._grid.getPageY(pageNumber); + this._pageIndicators.setCurrentPage(pageNumber); + return; + } + let velocity; if (!this._panning) velocity = 0;